.class Lcom/example/m6wmr/IntegralExchangeOperationActivity$1$2;
.super Ljava/lang/Object;
.source "IntegralExchangeOperationActivity.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;->handleMessage(Landroid/os/Message;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;

.field private final synthetic val$isnull:Z


# direct methods
.method constructor <init>(Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;Z)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/IntegralExchangeOperationActivity$1$2;->this$1:Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;

    iput-boolean p2, p0, Lcom/example/m6wmr/IntegralExchangeOperationActivity$1$2;->val$isnull:Z

    .line 195
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 10

    .prologue
    .line 200
    iget-boolean v7, p0, Lcom/example/m6wmr/IntegralExchangeOperationActivity$1$2;->val$isnull:Z

    if-eqz v7, :cond_1

    .line 203
    iget-object v7, p0, Lcom/example/m6wmr/IntegralExchangeOperationActivity$1$2;->this$1:Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;

    # getter for: Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;->this$0:Lcom/example/m6wmr/IntegralExchangeOperationActivity;
    invoke-static {v7}, Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;->access$0(Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;)Lcom/example/m6wmr/IntegralExchangeOperationActivity;

    move-result-object v7

    const-string v8, "userInfo"

    const/4 v9, 0x0

    invoke-virtual {v7, v8, v9}, Lcom/example/m6wmr/IntegralExchangeOperationActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v3

    .line 204
    .local v3, "sharedPreferences":Landroid/content/SharedPreferences;
    const-string v7, "uid"

    const-string v8, ""

    invoke-interface {v3, v7, v8}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 205
    .local v5, "uid":Ljava/lang/String;
    const-string v7, "pass"

    const-string v8, ""

    invoke-interface {v3, v7, v8}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 207
    .local v2, "pwd":Ljava/lang/String;
    new-instance v7, Ljava/lang/StringBuilder;

    iget-object v8, p0, Lcom/example/m6wmr/IntegralExchangeOperationActivity$1$2;->this$1:Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;

    # getter for: Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;->this$0:Lcom/example/m6wmr/IntegralExchangeOperationActivity;
    invoke-static {v8}, Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;->access$0(Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;)Lcom/example/m6wmr/IntegralExchangeOperationActivity;

    move-result-object v8

    # getter for: Lcom/example/m6wmr/IntegralExchangeOperationActivity;->m:Lmyapp/MyApp;
    invoke-static {v8}, Lcom/example/m6wmr/IntegralExchangeOperationActivity;->access$5(Lcom/example/m6wmr/IntegralExchangeOperationActivity;)Lmyapp/MyApp;

    move-result-object v8

    invoke-virtual {v8}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v8

    invoke-static {v8}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v8

    invoke-direct {v7, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v8, "/index.php?ctrl=app&source=1&"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    .line 208
    const-string v8, "action=exchange&datatype=json&uid="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "&pwd="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "&id="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    iget-object v8, p0, Lcom/example/m6wmr/IntegralExchangeOperationActivity$1$2;->this$1:Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;

    # getter for: Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;->this$0:Lcom/example/m6wmr/IntegralExchangeOperationActivity;
    invoke-static {v8}, Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;->access$0(Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;)Lcom/example/m6wmr/IntegralExchangeOperationActivity;

    move-result-object v8

    # getter for: Lcom/example/m6wmr/IntegralExchangeOperationActivity;->gift_id:Ljava/lang/String;
    invoke-static {v8}, Lcom/example/m6wmr/IntegralExchangeOperationActivity;->access$18(Lcom/example/m6wmr/IntegralExchangeOperationActivity;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "ID&shuliang="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "1"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    .line 209
    const-string v8, "&address="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    iget-object v8, p0, Lcom/example/m6wmr/IntegralExchangeOperationActivity$1$2;->this$1:Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;

    # getter for: Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;->this$0:Lcom/example/m6wmr/IntegralExchangeOperationActivity;
    invoke-static {v8}, Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;->access$0(Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;)Lcom/example/m6wmr/IntegralExchangeOperationActivity;

    move-result-object v8

    # getter for: Lcom/example/m6wmr/IntegralExchangeOperationActivity;->contacterAddress:Ljava/lang/String;
    invoke-static {v8}, Lcom/example/m6wmr/IntegralExchangeOperationActivity;->access$19(Lcom/example/m6wmr/IntegralExchangeOperationActivity;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "&contactname="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    iget-object v8, p0, Lcom/example/m6wmr/IntegralExchangeOperationActivity$1$2;->this$1:Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;

    # getter for: Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;->this$0:Lcom/example/m6wmr/IntegralExchangeOperationActivity;
    invoke-static {v8}, Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;->access$0(Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;)Lcom/example/m6wmr/IntegralExchangeOperationActivity;

    move-result-object v8

    # getter for: Lcom/example/m6wmr/IntegralExchangeOperationActivity;->contacterName:Ljava/lang/String;
    invoke-static {v8}, Lcom/example/m6wmr/IntegralExchangeOperationActivity;->access$20(Lcom/example/m6wmr/IntegralExchangeOperationActivity;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "&phone="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    iget-object v8, p0, Lcom/example/m6wmr/IntegralExchangeOperationActivity$1$2;->this$1:Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;

    # getter for: Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;->this$0:Lcom/example/m6wmr/IntegralExchangeOperationActivity;
    invoke-static {v8}, Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;->access$0(Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;)Lcom/example/m6wmr/IntegralExchangeOperationActivity;

    move-result-object v8

    # getter for: Lcom/example/m6wmr/IntegralExchangeOperationActivity;->contacterPhone:Ljava/lang/String;
    invoke-static {v8}, Lcom/example/m6wmr/IntegralExchangeOperationActivity;->access$21(Lcom/example/m6wmr/IntegralExchangeOperationActivity;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    .line 207
    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    .line 210
    .local v6, "url":Ljava/lang/String;
    iget-object v7, p0, Lcom/example/m6wmr/IntegralExchangeOperationActivity$1$2;->this$1:Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;

    # getter for: Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;->this$0:Lcom/example/m6wmr/IntegralExchangeOperationActivity;
    invoke-static {v7}, Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;->access$0(Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;)Lcom/example/m6wmr/IntegralExchangeOperationActivity;

    move-result-object v7

    # getter for: Lcom/example/m6wmr/IntegralExchangeOperationActivity;->m:Lmyapp/MyApp;
    invoke-static {v7}, Lcom/example/m6wmr/IntegralExchangeOperationActivity;->access$5(Lcom/example/m6wmr/IntegralExchangeOperationActivity;)Lmyapp/MyApp;

    move-result-object v7

    invoke-static {v6, v7}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v4

    .line 213
    .local v4, "string":Ljava/lang/String;
    :try_start_0
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1, v4}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 214
    .local v1, "jsonObject":Lorg/json/JSONObject;
    iget-object v7, p0, Lcom/example/m6wmr/IntegralExchangeOperationActivity$1$2;->this$1:Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;

    # getter for: Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;->this$0:Lcom/example/m6wmr/IntegralExchangeOperationActivity;
    invoke-static {v7}, Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;->access$0(Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;)Lcom/example/m6wmr/IntegralExchangeOperationActivity;

    move-result-object v7

    const-string v8, "msg"

    invoke-virtual {v1, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-static {v7, v8}, Lcom/example/m6wmr/IntegralExchangeOperationActivity;->access$22(Lcom/example/m6wmr/IntegralExchangeOperationActivity;Ljava/lang/String;)V

    .line 216
    const-string v7, "error"

    invoke-virtual {v1, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    const-string v8, "true"

    invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_0

    .line 218
    iget-object v7, p0, Lcom/example/m6wmr/IntegralExchangeOperationActivity$1$2;->this$1:Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;

    # getter for: Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;->this$0:Lcom/example/m6wmr/IntegralExchangeOperationActivity;
    invoke-static {v7}, Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;->access$0(Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;)Lcom/example/m6wmr/IntegralExchangeOperationActivity;

    move-result-object v7

    # getter for: Lcom/example/m6wmr/IntegralExchangeOperationActivity;->h:Landroid/os/Handler;
    invoke-static {v7}, Lcom/example/m6wmr/IntegralExchangeOperationActivity;->access$0(Lcom/example/m6wmr/IntegralExchangeOperationActivity;)Landroid/os/Handler;

    move-result-object v7

    const/16 v8, 0xa

    invoke-virtual {v7, v8}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 223
    :cond_0
    iget-object v7, p0, Lcom/example/m6wmr/IntegralExchangeOperationActivity$1$2;->this$1:Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;

    # getter for: Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;->this$0:Lcom/example/m6wmr/IntegralExchangeOperationActivity;
    invoke-static {v7}, Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;->access$0(Lcom/example/m6wmr/IntegralExchangeOperationActivity$1;)Lcom/example/m6wmr/IntegralExchangeOperationActivity;

    move-result-object v7

    # getter for: Lcom/example/m6wmr/IntegralExchangeOperationActivity;->h:Landroid/os/Handler;
    invoke-static {v7}, Lcom/example/m6wmr/IntegralExchangeOperationActivity;->access$0(Lcom/example/m6wmr/IntegralExchangeOperationActivity;)Landroid/os/Handler;

    move-result-object v7

    const/4 v8, 0x4

    invoke-virtual {v7, v8}, Landroid/os/Handler;->sendEmptyMessage(I)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    .line 233
    .end local v1    # "jsonObject":Lorg/json/JSONObject;
    .end local v2    # "pwd":Ljava/lang/String;
    .end local v3    # "sharedPreferences":Landroid/content/SharedPreferences;
    .end local v4    # "string":Ljava/lang/String;
    .end local v5    # "uid":Ljava/lang/String;
    .end local v6    # "url":Ljava/lang/String;
    :cond_1
    :goto_0
    return-void

    .line 224
    .restart local v2    # "pwd":Ljava/lang/String;
    .restart local v3    # "sharedPreferences":Landroid/content/SharedPreferences;
    .restart local v4    # "string":Ljava/lang/String;
    .restart local v5    # "uid":Ljava/lang/String;
    .restart local v6    # "url":Ljava/lang/String;
    :catch_0
    move-exception v0

    .line 226
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0
.end method
